<html>
	<head>
		<title>..:: 7Sev3n Bot ::..</title>
		<script type="text/javascript" src="js/cc.marcio.js"></script>
		<script language="javascript">
			
			cc.marcio.functions.loopInInterval("cc.marcio.ajax.getAsync('Ajax.php?action=atualiza','exec')", 2000);

			function take() {
				var slot = cc.marcio.dom.value('slot');
				cc.marcio.ajax.postAsync('Ajax.php?action=take&slot=' + slot, null);
			}

			function drop() {
				var slot = cc.marcio.dom.value('slot');
				cc.marcio.ajax.postAsync('Ajax.php?action=drop&slot=' + slot, null);
			}
			
			function exec(object) {
				cc.marcio.dom._html('result', cc.marcio.dom.toJSON(object));
			}
			
			
		</script>
	</head>
	<body>
		Escolha o planeta
		<input type="text" id="setor" size="3">:
		<input type="text" id="quadrante" size="3">:
		<input type="text" id="slot" size="3">
		<input type="button" value="take" onclick="take();">
		<input type="button" value="drop" onclick="drop();">
		<hr>
		<div id="result"></div>
	</body>
</html>